class WIFI:

    def __init__(self, framework):
        self.framework = framework
        self.command = {}

    def set_rate(self, rate):
        self.command = {"type": "wifi-rate", "rate": rate}
        if self.framework.status:
            self.framework.write(self.command)
